<template>
  <div id="talent_03">
    <p class="data_time">
      <span>数据更新时间：</span>
      <span style="color:#888">{{ timestamp(time, "Y-M-D h:m") }}</span>
    </p>
    <section class="type mt_30" style="margin-bottom: 14px;">
      <time_options
        v-model="value03"
        :radio_values="['日榜', '周榜', '月榜']"
      />
      <section class="input_group">
        <input
          type="text"
          v-model="input01"
          placeholder="请输入关键词在排行榜中搜索"
          @keyup.enter="search_input()"
        />
        <div @click="search_input()">
          <!-- <img src="../../../assets/meng/search01.png" /> -->
        </div>
      </section>
      <div class="btn_group">
        <button @click="generatorImage">
          <img src="../../../assets/meng/star_map05.png" />分享
        </button>
        <button @click="export_data">
          <img src="../../../assets/meng/star_map04.png" />导出
        </button>
      </div>
    </section>
    <ul
      class="fixedThead"
      ref="fixedThead"
      :class="{ isShow: isFixed }"
      :style="showLeft == true ? 'left:222px' : 'left:98px'"
    >
      <li tc>排名</li>
      <li>土豪</li>
      <li
        tc
        style="  cursor: pointer;"
        @click="sort_fun(false, 1)"
        v-if="
          order_by == 'desc' &&
            sort != '1' &&
            this.value03.split('?')[1] != '2021-04-01-2021-04-30' &&
            this.value03.split('?')[1] != '2021-03-01-2021-03-31'
        "
      >
        打赏音浪
        <img
          src="@/assets/meng/down_up.png"
          v-if="order_by == 'desc' && sort == '1'"
        />
        <img src="@/assets/meng/no_down_up.png" v-else />
      </li>
      <li
        tc
        v-if="
          order_by == 'desc' &&
            sort == '1' &&
            this.value03.split('?')[1] != '2021-04-01-2021-04-30' &&
            this.value03.split('?')[1] != '2021-03-01-2021-03-31'
        "
      >
        打赏音浪
        <img
          src="@/assets/meng/down_up.png"
          v-if="order_by == 'desc' && sort == '1'"
        />
        <img src="@/assets/meng/no_down_up.png" v-else />
      </li>
      <!--预留  -->
      <li
        tc
        v-if="
          this.value03.split('?')[1] == '2021-04-01-2021-04-30' ||
            this.value03.split('?')[1] == '2021-03-01-2021-03-31'
        "
      >
        打赏音浪
      </li>
      <!-- -->
      <li tc>送礼达人数</li>
      <li
        tc
        @click="sort_fun(false, 2)"
        style="  cursor: pointer;"
        v-if="
          order_by == 'desc' &&
            sort != '2' &&
            this.value03.split('?')[1] != '2021-04-01-2021-04-30' &&
            this.value03.split('?')[1] != '2021-03-01-2021-03-31'
        "
      >
        送礼直播场次
        <img
          src="@/assets/meng/down_up.png"
          v-if="order_by == 'desc' && sort == '2'"
        />
        <img src="@/assets/meng/no_down_up.png" v-else />
      </li>
      <li
        tc
        v-if="
          order_by == 'desc' &&
            sort == '2' &&
            this.value03.split('?')[1] != '2021-04-01-2021-04-30' &&
            this.value03.split('?')[1] != '2021-03-01-2021-03-31'
        "
      >
        送礼直播场次
        <img
          src="@/assets/meng/down_up.png"
          v-if="order_by == 'desc' && sort == '2'"
        />
        <img src="@/assets/meng/no_down_up.png" v-else />
      </li>
      <!--预留  -->
      <li
        tc
        v-if="
          this.value03.split('?')[1] == '2021-04-01-2021-04-30' ||
            this.value03.split('?')[1] == '2021-03-01-2021-03-31'
        "
      >
        送礼直播场次
      </li>
      <!-- -->
      <li tc>操作</li>
    </ul>
    <table class="table table01" ref="capture ">
      <thead>
        <tr>
          <th style="width:10%">排名</th>
          <th>土豪</th>

          <th
            style="  cursor: pointer;"
            @click="sort_fun(false, 1)"
            v-if="
              order_by == 'desc' &&
                sort != '1' &&
                this.value03.split('?')[1] != '2021-04-01-2021-04-30' &&
                this.value03.split('?')[1] != '2021-03-01-2021-03-31'
            "
          >
            打赏音浪
            <img
              src="@/assets/meng/down_up.png"
              v-if="order_by == 'desc' && sort == '1'"
            />
            <img src="@/assets/meng/no_down_up.png" v-else />
          </th>
          <th
            v-if="
              order_by == 'desc' &&
                sort == '1' &&
                this.value03.split('?')[1] != '2021-04-01-2021-04-30' &&
                this.value03.split('?')[1] != '2021-03-01-2021-03-31'
            "
          >
            打赏音浪
            <img
              src="@/assets/meng/down_up.png"
              v-if="order_by == 'desc' && sort == '1'"
            />
            <img src="@/assets/meng/no_down_up.png" v-else />
          </th>
          <!--预留  -->
          <th
            v-if="
              this.value03.split('?')[1] == '2021-04-01-2021-04-30' ||
                this.value03.split('?')[1] == '2021-03-01-2021-03-31'
            "
          >
            打赏音浪
          </th>
          <!-- -->

          <th>送礼达人数</th>

          <th
            @click="sort_fun(false, 2)"
            style="  cursor: pointer;"
            v-if="
              order_by == 'desc' &&
                sort != '2' &&
                this.value03.split('?')[1] != '2021-04-01-2021-04-30' &&
                this.value03.split('?')[1] != '2021-03-01-2021-03-31'
            "
          >
            送礼直播场次
            <img
              src="@/assets/meng/down_up.png"
              v-if="order_by == 'desc' && sort == '2'"
            />
            <img src="@/assets/meng/no_down_up.png" v-else />
          </th>
          <th
            v-if="
              order_by == 'desc' &&
                sort == '2' &&
                this.value03.split('?')[1] != '2021-04-01-2021-04-30' &&
                this.value03.split('?')[1] != '2021-03-01-2021-03-31'
            "
          >
            送礼直播场次
            <img
              src="@/assets/meng/down_up.png"
              v-if="order_by == 'desc' && sort == '2'"
            />
            <img src="@/assets/meng/no_down_up.png" v-else />
          </th>
          <!--预留  -->
          <th
            v-if="
              this.value03.split('?')[1] == '2021-04-01-2021-04-30' ||
                this.value03.split('?')[1] == '2021-03-01-2021-03-31'
            "
          >
            送礼直播场次
          </th>
          <!-- -->

          <th>操作</th>
        </tr>
      </thead>
      <tbody v-if="table_data01.length != 0 && !loading">
        <tr
          v-for="(item, index) in table_data01"
          :key="'table' + index"
          :id="!index ? 'tr1' : ''"
        >
          <td class="td td_01">{{ item.rowId }}</td>
          <td class="td td_02">
            <div style="justify-content: flex-start">
              <img
                :src="item.logo"
                class="pointer"
                @click="go_to_page01(item.authorId)"
              />
              <section>
                <div>
                  <span
                    class="dot pointer"
                    @click="go_to_page01(item.authorId)"
                    >{{ item.nickName }}</span
                  >
                  <img
                    v-if="item.isShop == 1"
                    src="../../../assets/meng/search_result01.png"
                  />
                  <img
                    v-if="item.verifyType == 1"
                    src="../../../assets/meng/search_result02.png"
                  />
                  <img
                    v-if="item.verifyType == 2"
                    src="../../../assets/meng/search_result03.png"
                  />
                </div>
                <!-- <div>粉丝数：{{ format_num(item.totalFans) }}</div> -->
              </section>
            </div>
          </td>
          <td class="td td_03">
            <div>{{ format_num(item.sound) }}</div>
          </td>
          <td class="td td_04">
            <div>{{ format_num(item.rewardAuthorCount) }}</div>
          </td>
          <td class="td td_05">
            <div>{{ format_num(item.rewardLiveCount) }}</div>
          </td>
          <td class="td td_06">
            <button @click="seeDetails(item)">查看详情</button>
          </td>
        </tr>
      </tbody>
    </table>
    <div class="upgradeBox" v-if="!permissions">
      <RankUpgrade class="rankUpgrade" />
    </div>
    <div class="pageBox" v-if="!loading">
      <el-pagination
        background
        layout="prev, pager, next, jumper"
        :total="count"
        :page-size="30"
        :current-page="page"
        @current-change="get_data"
        :hide-on-single-page="true"
      ></el-pagination>
    </div>

    <div
      v-loading="loading"
      v-if="loading"
      class="loading"
      element-loading-text="拼命加载中..."
      element-loading-spinner="el-icon-loading"
    ></div>
    <p
      class="nothing"
      v-show="
        table_data01.length < 30 &&
          !loading &&
          permissions &&
          table_data01.length != 0
      "
    >
      我是有底线的～
    </p>
    <div
      class="empty"
      v-show="!loading && table_data01.length == 0 && permissions"
    >
      <img src="@/assets/liu/zw.png" />
      <p>暂无数据</p>
    </div>
    <!-- 弹窗 -->
    <el-dialog :visible.sync="dialog" width="790px" top="7%" class="dialog">
      <section class="header">
        <div>
          <img
            :src="richerLogo"
            v-if="richerLogo"
            @click="go_to_page01(response.authorId)"
            style="cursor: pointer;"
          />
        </div>
        <div>
          <p
            class="dot"
            v-if="richerUrl && richerName"
            @click="go_to_page01(response.authorId)"
          >
            {{ richerName }}
            <img v-if="false" src="@/assets/meng/search_result02.png" />
            <img v-if="false" src="@/assets/meng/search_result03.png" />
            <el-popover
              placement="bottom"
              trigger="hover"
              popper-class="hot_video_popover"
            >
              <vue-qr
                :size="150"
                :margin="0"
                :auto-color="true"
                :dot-scale="1"
                :text="richerUrl"
              />
              <p>【查看抖音主页】</p>
              <img slot="reference" src="@/assets/meng/hot_video13.png" />
            </el-popover>
          </p>
          <!-- <p class="dot">简介：请认准官方认证号，其他的都是骗子v其他的都是骗子</p> -->
        </div>
      </section>
      <div class="type">
        <p><img src="@/assets/meng/shop_details02.png" />打赏列表</p>
        <radio_group01
          :radio_values="['昨天', '近7天', '近30天']"
          v-model="value01"
        />
      </div>
      <table class="table table02">
        <thead>
          <tr>
            <th>达人</th>
            <th>所属行业</th>
            <th>开播时间</th>
            <th>打赏音浪</th>
          </tr>
        </thead>
        <tbody>
          <tr
            v-for="(item, index) in response && response.list"
            :key="'table01' + index"
          >
            <td class="td td_01">
              <div>
                <img
                  :src="item.logo"
                  class="pointer"
                  @click="go_to_page01(item.authorId)"
                />
                <section>
                  <div>
                    <span
                      class="dot pointer"
                      @click="go_to_page01(item.authorId)"
                      >{{ item.nickName }}</span
                    >
                    <img
                      v-if="item.isShop == 1"
                      src="../../../assets/meng/search_result01.png"
                    />
                    <img
                      v-if="item.verifyType == 1"
                      src="../../../assets/meng/search_result02.png"
                    />
                    <img
                      v-if="item.verifyType == 2"
                      src="../../../assets/meng/search_result03.png"
                    />
                  </div>
                  <div>粉丝数：{{ format_num(item.totalFans) }}</div>
                </section>
              </div>
            </td>
            <td class="td td_02">
              <div>{{ item.category }}</div>
            </td>
            <td class="td td_03">
              <div>{{ timestamp(item.beginTimespan, "Y-M-D h:m") }}</div>
            </td>
            <td class="td td_04">
              <div>{{ format_num(item.sound) }}</div>
            </td>
          </tr>
        </tbody>
      </table>
      <div
        v-loading="loading01"
        v-if="loading01"
        class="loading"
        element-loading-text="拼命加载中..."
        element-loading-spinner="el-icon-loading"
      ></div>
      <div v-if="total <= 5" class="Popupline">我是有底线的~</div>
      <div class="pageBox" v-if="response && total > 5">
        <el-pagination
          background
          :page-size="5"
          layout="prev, pager, next,jumper"
          :total="total"
          :current-page.sync="page02"
          :hide-on-single-page="true"
        ></el-pagination>
        <!-- :hide-on-single-page="true" -->
      </div>
    </el-dialog>
  </div>
</template>
<script>
import html2canvas from "html2canvas";
import VueQr from "vue-qr";
import RankUpgrade from "@/component/rankUpgrade.vue";
export default {
  name: "talent_03",
  components: { VueQr, RankUpgrade },
  data() {
    return {
      permissions: 1,
      value03: "日榜",
      busy: false,
      loading: true,
      table_data01: [],
      page01: 1,
      cancel01: null,
      input01: "",
      time: "",
      //   弹窗
      cancel02: null,
      dialog: false,
      page02: 1,
      value01: "昨天",
      total: 0,
      response: null,
      loading01: false,
      author_id: null,
      richerName: "",
      richerLogo: "",
      richerUrl: "",
      count: 0,
      page: 1,
      showLeft: true,
      isFixed: false,
      offsetTop: 0,
      order_by: "desc", //   表格头部排序
      sort: 1 //   表格头部排序
    };
  },
  computed: {
    listen_change() {
      const { value03 } = this;
      return {
        value03
      };
    }
  },
  created() {
    // this.get_data() 因为time_options组件内部已经提交新值，导致v-model的值更改，所以已经执行请求函数
    this.$watch("value01", (newValue, oldValue) => {
      this.get_data01();
    });
    this.$watch("page02", (newValue, oldValue) => {
      this.get_data01();
    });
    this.$watch(
      "listen_change",
      this.debounce((newValue, oldValue) => {
        this.page = 1;
        this.table_data01 = [];
        this.get_data();
      }, 0)
    );
  },
  watch: {
    "$store.state.left_nav_flag"(old, newOld) {
      this.showLeft = newOld;
      if ((newOld = false)) {
        this.setTBBar();
      } else {
        this.setTBBar();
      }
    }
  },
  mounted() {
    window.addEventListener("scroll", this.initHeight);
    window.addEventListener("resize", () => {
      //给浏览器窗口绑定变化大小事件
      this.setTBBar();
    });
  },
  methods: {
    //   表格头部排序
    sort_fun(parm01, parm02) {
      if (parm01) {
        this.order_by = "asc";
      } else {
        this.order_by = "desc";
      }
      switch (parm02) {
        case 1:
          this.sort = 1;
          break;
        case 2:
          this.sort = 2;
          break;
      }
      this.get_data();
    },
    // 获取子节点函数（后期可集成到一个库里）
    getChilds(pNode) {
      if (!pNode) return false;
      let nodes = pNode.childNodes;
      let newList = [];
      for (let i = 0; i < nodes.length; i++) {
        let node = nodes[i];
        if (node.nodeType === 1) {
          //判断类型
          newList.push(node);
        }
      }
      return newList;
    },
    // 设置表格表头滑动置顶
    setTBBar() {
      this.$nextTick(() => {
        let tableEl = this.$refs.tableEl;
        let ulEl = this.$refs.fixedThead;
        let tr1 = document.querySelector("#tr1");
        // thTrEl.style.width = tableEl.offsetWidth+'px';
        if (tr1) {
          let tds = this.getChilds(tr1);
          let liEls = this.getChilds(ulEl);

          for (let i = 0; i < liEls.length; i++) {
            liEls[i].style.width = tds[i].offsetWidth + "px";
          }
        }
      });
    },
    search_input() {
      this.page = 1;
      this.table_data01 = [];
      this.get_data();
    },
    // 弹窗
    get_data01() {
      let that = this;

      this.response = null;
      this.loading01 = true;
      this.$axios
        .post(
          "/api/live/PostRewardRecord",
          {
            AuthorId: that.author_id,
            DateType:
              that.value01 == "昨天" ? 1 : that.value01 == "近7天" ? 2 : 3,
            Size: 5,
            Index: that.page02
          },
          {
            cancelToken: new that.$axios.CancelToken(function executor(c) {
              if (that.cancel02) that.cancel02();
              that.cancel02 = c;
            })
          }
        )
        .then(response => {
          this.loading01 = false;

          if (response.data.code == 0) {
            this.response = response.data.data;
            this.total = response.data.data.totalCount;
          } else {
            this.response = null;
            this.total = 0;
          }
        })
        .catch(error => {
          this.loading01 = false;
          console.log(error);
        });
    },
    get_data(cpage) {
      let that = this;

      if (cpage) {
        that.backTop();
        this.page = cpage;
        //console.log("page", this.page);
      }
      this.loading = true;
      this.permissions = 1;
      this.busy = true;
      this.$axios
        .post(
          "/api/live/PostLocalTycoonRewardRank",
          {
            Keyword: this.trimStr(that.input01),
            RankType:
              that.value03.split("?")[0] == "日榜"
                ? 1
                : that.value03.split("?")[0] == "周榜"
                ? 2
                : 3,
            Time: that.value03.split("?")[1],
            Size: 30,
            Index: that.page,
            SortValue:
              this.value03.split("?")[1] == "2021-04-01-2021-04-30" ||
              this.value03.split("?")[1] == "2021-03-01-2021-03-31"
                ? 1
                : that.sort
          },
          {
            cancelToken: new that.$axios.CancelToken(function executor(c) {
              if (that.cancel01) that.cancel01();
              that.cancel01 = c;
            })
          }
        )
        .then(response => {
          this.loading = false;
          if (response.data.code == 1003) {
            this.permissions = 0;
            this.table_data01 = [];
          } else {
            this.permissions = 1;
          }
          if (response.data.code == 0) {
            //   alert( that.value03.split("?"))
            this.setTBBar();
            // console.log(response.data.data)
            this.time = response.data.data.timespan;

            this.table_data01 = response.data.data.ranks;

            this.count = response.data.data.totalCount;

            response.data.data.ranks.length < 30
              ? (this.busy = true)
              : (this.busy = false);
          }
        })
        .catch(error => {
          console.log(error);
        });
    },
    generatorImage() {
      var that = this;
      const loading = this.$loading({
        lock: true,
        text: "导出中...",
        spinner: "el-icon-loading",
        customClass: "customClass"
      });
      var shareContent;
      shareContent = this.$refs.capture; //需要截图的包裹的（原生的）DOM 对象
      var width = shareContent.offsetWidth; //获取dom 宽度
      var height = shareContent.offsetHeight; //获取dom 高度
      var canvas = document.createElement("canvas"); //创建一个canvas节点
      //   var scale = window.devicePixelRatio //定义任意放大倍数 支持小数 //   var scale = 2 //定义任意放大倍数 支持小数
      var scale = 1;
      canvas.width = width * scale * scale; //定义canvas 宽度 * 缩放
      canvas.height = height * scale * scale; //定义canvas高度 *缩放
      canvas.style.width = width + "px";
      canvas.style.height = height + "px";
      canvas.getContext("2d").scale(scale, scale); //获取context,设置scale
      var opts = {
        dpi: window.devicePixelRatio,
        scale: scale, // 添加的scale 参数
        useCORS: true,
        canvas: canvas, //自定义 canvas
        logging: true //日志开关
      };
      html2canvas(shareContent, opts).then(canvas => {
        let str;
        str = `《直播达人榜-土豪打赏榜-${that.value03.split("?")[1]}》.png`;
        canvas.toBlob(
          function(blob) {
            const eleLink = document.createElement("a");
            eleLink.download = str;
            eleLink.style.display = "none";
            // 字符内容转变成blob地址
            eleLink.href = URL.createObjectURL(blob);
            // 触发点击
            document.body.appendChild(eleLink);
            eleLink.click();
            // 然后移除
            document.body.removeChild(eleLink);
          },
          "image/png",
          1
        );
        loading.close();
      });
    },
    export_data() {
      let that = this;
      let str = `排名,达人,打赏音浪,送礼达人数,送礼直播场次\n`;
      for (let i = 0; i < that.table_data01.length; i++) {
        str += `${that.table_data01[i].rowId},\"${that.table_data01[
          i
        ].nickName.replace(/"/g, '""')}\",${that.format_num(
          that.table_data01[i].sound
        )},${that.format_num(
          that.table_data01[i].rewardAuthorCount
        )},${that.format_num(that.table_data01[i].rewardLiveCount)}\n`;
      }
      var blob = new Blob([str], { type: "text/plain;charset=utf-8" }); //解决中文乱码问题
      blob = new Blob([String.fromCharCode(0xfeff), blob], { type: blob.type });
      let object_url = window.URL.createObjectURL(blob);
      var link = document.createElement("a");
      link.href = object_url;
      let str_name = `《直播达人榜-土豪打赏榜-${
        that.value03.split("?")[1]
      }》.csv`;
      link.download = str_name;
      document.body.appendChild(link);
      link.click();
      document.body.removeChild(link);
    },
    loadMore: function() {
      if (this.page == 31) {
        return false;
      }
      this.get_data();
    },
    go_to_page01(id) {
      let router = this.$router.resolve({
        path: `/talent_main/tdetails/${id}/${0}`
      });
      window.open(router.href, "_blank");
    },
    // 查看详情
    seeDetails(item) {
      this.author_id = item.authorId;
      // 带到详情
      this.richerName = item.nickName;
      this.richerLogo = item.logo;
      this.richerUrl = item.url;
      this.page02 = 1;
      this.get_data01();
      this.dialog = true;
    },
    // 回到顶部方法，加计时器是为了过渡顺滑
    backTop() {
      document.body.scrollTop = document.documentElement.scrollTop = 0;
    },
    initHeight() {
      var scrollTop =
        window.pageYOffset ||
        document.documentElement.scrollTop ||
        document.body.scrollTop;
      this.isFixed = scrollTop > 180 ? true : false;
    }
  }
};
</script>
<style scoped lang="less">
.data_time {
  margin-top: -52px;
  margin-bottom: 38px;
  margin-right: 0;
  text-align: right;
  > span:first-child {
    font-size: 14px;
    letter-spacing: 0;
    color: #888888;
    // margin-right: 9px;
  }
  > span:last-child {
    font-size: 15px;
    letter-spacing: 0;
    // font-family: DINAlternate-Bold;
    color: #1779ff;
  }
}
.dialog {
  .page {
    padding-top: 30px;
    text-align: right;
    > p {
      font-size: 14px;
      color: #b5b5b5;
      text-align: center;
    }
    > div {
      margin-right: -10px;
    }
  }
  .table02 {
    width: 100%;
    tbody {
      tr {
        height: 78px;
      }
      td {
        div {
          font-family: DINAlternate-Bold;
          font-size: 15px;
          color: #222;
        }
      }
    }
    .td_03,
    .td_04 {
      font-family: DINAlternate-Bold;
      font-size: 15px;
      text-align: center;
    }
    .td_04 {
      color: #1779ff;
    }
    .td_01 {
      width: 240px;
      > div {
        section {
          width: 160px;
          > div:first-child {
            display: flex;
            align-items: center;
            > span {
              max-width: 100%;
              width: auto;
              font-size: 14px;
              color: #222;
              // font-weight: 600;
            }

            img {
              height: 16px;
              margin-left: 6px;
            }
            p {
              font-size: 14px;
              color: #888;
              padding-top: 5px;
              text-align: left;
            }
          }
          > div:last-child {
            width: 100%;
            word-break: break-all;
            font-size: 14px;
            color: #555555;
          }
        }
        > img {
          width: 50px;
          height: 50px;
          border-radius: 50%;
          margin-right: 12px;
          border: 1px solid #e5e5e5;
        }
      }
    }

    .td {
      > div {
        height: 70px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
    }
  }
  .type {
    display: flex;
    justify-content: space-between;

    color: #888888;
    font-size: 14px;
    p {
      img {
        width: 16px;
        height: 16px;
        font-size: 15px;
        color: #222222;
        margin-right: 6px;
        vertical-align: -3px;
      }
    }
  }
  .header {
    > div:first-child {
      position: relative;
      > div {
        position: absolute;
        bottom: -8px;
        left: -3px;
        width: 64px;
        height: 22px;
        background-image: linear-gradient(90deg, #ff295d 1%, #fa4fa2 100%),
          linear-gradient(#ffffff, #ffffff);
        background-blend-mode: normal, normal;
        border-radius: 4px;
        font-size: 12px;
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      > img {
        width: 57px;
        height: 57px;
        box-sizing: border-box;
        margin-right: 15px;
        border-radius: 50%;
        // border: 2px solid #ff295d;
      }
    }
    > div:last-child {
      flex: 1;
      height: 57px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      > p:nth-child(1) {
        font-size: 15px;
        font-weight: 600;
        color: #222222;
        img {
          width: 16px;
          margin-left: 4px;
          vertical-align: -2px;
        }
      }
      > p:nth-child(2) {
        width: 300px;
        font-size: 14px;
        color: #555555;
        margin-top: 4px;
      }
    }

    display: flex;
    align-items: center;
    box-sizing: border-box;
  }
}
.table01 {
  tr {
    th:nth-child(2) {
      text-align: left;
    }
    img {
      width: 5px;
      height: 10px;
      vertical-align: 0;
    }
  }
  width: 100%;
  tbody {
    tr {
      height: 78px;
    }
  }

  .td_06 {
    text-align: center;
    button {
      width: 88px;
      height: 32px;
      background-color: transparent;
      border: 1px solid #fd7f2c;
      border-radius: 4px;
      font-size: 14px;
      font-weight: normal;
      font-stretch: normal;
      line-height: 30px;
      letter-spacing: 0px;
      color: #fd7f2c;
      text-align: center;
    }
    button:hover {
      color: #ff924b;
      border-color: #ff924b;
    }
  }

  .td_01,
  .td_03,
  .td_05,
  .td_04 {
    font-family: DINAlternate-Bold;
    font-size: 15px;
    text-align: center;
  }

  .td_02 {
    width: 400px;
    > div {
      section {
        width: 210px;
        > div:first-child {
          display: flex;
          align-items: center;
          > span {
            max-width: 100%;
            width: auto;
            word-break: break-all;
            font-size: 14px;
            font-weight: 600;
            color: #222;
            margin-bottom: 5px;
          }
          > span:hover {
            color: #1779ff;
          }
          img {
            width: 14px;
            height: 14px;
            margin-left: 6px;
          }
        }
        > div:last-child {
          width: 100%;
          word-break: break-all;
          font-size: 14px;
          color: #555555;
        }
      }
      > img {
        border-radius: 50%;
        width: 50px;
        height: 50px;
        margin-right: 12px;
        border: 1px solid #e5e5e5;
      }
    }
  }

  .td {
    > div {
      height: 70px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }
}
.type {
  > div {
    display: inline-block;
  }
  .input_group {
    display: inline-block;
    margin-left: 11px;
    position: relative;
    width: 308px;
    height: 32px;
    border-radius: 4px 4px 4px 4px;
    border: solid 1px #e5e5e5;
    box-sizing: border-box;
    input {
      width: 100%;
      font-size: 14px;
      vertical-align: -1px;
      background-color: #f5f5f5;
      height: 100%;
      box-sizing: border-box;
      padding-left: 11px;
      padding-right: 38px;
      border: none;
      color: #222;
    }
    input::-webkit-input-placeholder {
      color: #b5b5b5 !important;
    }
    > div:hover {
      background: url("../../../assets/wang/talentCompare/search.png") no-repeat
          12px 7px,
        #fff;
      background-size: 15px 15px;
    }
    > div {
      position: absolute;
      right: 0;
      cursor: pointer;
      top: 0;
      text-align: center;
      width: 38px;
      height: 30px;
      border-radius: 0px 4px 4px 0px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: url("../../../assets/wang/talentCompare/search-nohover.png")
          no-repeat 12px 7px,
        #fff;
      background-size: 15px 15px;
      img {
        width: 15px;
      }
    }
  }
  .btn_group {
    text-align: right;
    float: right;
    button {
      width: 70px;
      height: 32px;
      background-color: #f8f8f8;
      border-radius: 4px;
      border: solid 1px #e6e6e6;
      font-size: 14px;
      // line-height: 30px;
      box-sizing: border-box;
      color: #222222;
      text-align: center;
    }
    > button:nth-child(1) {
      margin-right: 10px;
      img {
        width: 14px;
        vertical-align: -1px;
        margin-right: 6px;
      }
    }
    > button:nth-child(2) {
      img {
        width: 13px;
        vertical-align: -1px;
        margin-right: 6px;
      }
    }
  }
}
#talent_03 {
  padding-bottom: 1px;
  width: 100%;
  min-height: 100vh;
  .paginationBox {
    width: 100%;
    background-color: #fff;
    // margin-top: 10px;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
    // padding-left: 1000px;
    .el-pagination {
      float: right;
    }
  } // 升级会员
  .upgradeBox {
    min-height: 60vh;
    position: relative;
    .rankUpgrade {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
  }
  .fixedThead {
    display: none;
    position: fixed;
    top: 60px;
    left: 200px;

    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    background-color: #f5f9ff;
    height: 48px;
    line-height: 48px;
    overflow: hidden;
    z-index: 99;
    font-size: 0;
    li {
      box-sizing: border-box;
      display: inline-block;
      font-size: 14px;
    }

    &.isShow {
      display: block;
    }
    img {
      width: 5px;
      height: 10px;
      vertical-align: -1px;
    }
  }
  [tc] {
    text-align: center;
  }
  [tl] {
    text-align: left;
  }
  [tr] {
    text-align: right;
  }
}
.dot {
  display: block;
  width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  // display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  cursor: pointer;
}
.dot:hover {
  color: #ff924b !important;
}
.el-dialog {
  .type {
    div {
      position: relative;
      top: -14px;
    }
  }
}
// 弹窗底线~
.Popupline {
  font-size: 14px;
  color: #888;
  text-align: center;
  height: 40px;
  line-height: 40px;
  padding-top: 30px;
}
</style>
